﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Receiving.aspx.cs" Inherits="WMS6.Web.Inbound.Receiving"
    meta:resourcekey="Page" %>

<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc2" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Receiving</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }

        function newReceiving()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Receiving.aspx?from=" + escape(from);
            return false;
        }
       
        function popManualPutAway()
        {
            var lang = self.parent.document.getElementById("hdnPerfLanguage").value;
            var style = self.parent.document.getElementById("henPerfStyle").value;
            setTab('one',3,4);
            var rtnValue = window.showModalDialog('ManualPutaway.aspx',lang+','+style,'dialogWidth=810px;dialogHeight=500px;center=yes;resizable=yes;status=no;')
            if(rtnValue != null && rtnValue.toString() != "")
            {
                var temp = rtnValue.split(',');
                if(temp.length > 1)
                {
                    rtnValue = temp[0];
                }
                else 
                {
                    document.getElementById("lblMsg").innerText = '<%=GetGlobalMsgResource("F4200_001") %>';
                }
                document.getElementById("hdnRtnValue").value = rtnValue;
                document.getElementById("btnRefresh").click();
            }
        }
        
        //弹出 打印 入库验收单 的窗口
        function popPrintReceipt()
        {
            var receiptID = document.getElementById("txtReceiptID").value;
             var OwnerID= document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=printreceipt&receiptID=' + escape(receiptID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        //弹出 打印 上架工作单 的窗口
        function popPrintPutAway()
        {
            var receiptID = document.getElementById("txtReceiptID").value;
            var OwnerID= document.getElementById("txtOwnerID").value;
            var rtnValue = window.open('../Common/PrintReport.aspx?rtype=printputawayreport&receiptID=' + escape(receiptID) + '&OwnerID=' + escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');        
            
        }
        //弹出 打印 入库验收单 的窗口
        function popPrintReceiptList() {
            var receiptID = document.getElementById("txtReceiptID").value;
            var OwnerID= document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=printreceipthistory&receiptID=' + escape(receiptID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        //弹出 打印 质检单 的窗口
        function popPrintQCReport()
        {
            var receiptID = document.getElementById("txtReceiptID").value;
            var OwnerID= document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=PrintQCReport&receiptID=' + escape(receiptID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        //弹出 打印 应收费用 的窗口
        function popPrintReceivableBillByReceiptID() {
            var receiptID = document.getElementById("txtReceiptID").value;
            var OwnerID = document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=PrintReceivableBillByReceiptID&receiptID=' + escape(receiptID) + '&OwnerID=' + escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        //弹出 打印 应付费用 的窗口
        function popPrintPaymentBillByReceiptID() {
            var receiptID = document.getElementById("txtReceiptID").value;
            var OwnerID = document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=PrintPaymentBillByReceiptID&receiptID=' + escape(receiptID) + '&OwnerID=' + escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        //弹出 打印 进仓回单 的窗口
        function popPrintImportReceipt() {
            var receiptID = document.getElementById("txtReceiptID").value;
            var OwnerID = document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=PrintImportReceipt&receiptID=' + escape(receiptID) + '&OwnerID=' + escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        
        //显示 操作 DIV
        function showAction()
		{	
			var pos = getElementPos("htmlbtnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		//显示 报表 DIV
		function showReport()
		{	
			var pos = getElementPos("htmlbtnReport");	
			document.getElementById("reportDiv").style.top = pos.y+17;
			document.getElementById("reportDiv").style.left = pos.x;  			
			document.getElementById("hiddenReportFlag").value = '1';
		}
		
       function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		}
		//隐藏 报表 DIV
		function hiddenReportDiv()
		{
			var flag = document.getElementById("hiddenReportFlag").value
			if(flag == "1")
			{
				document.getElementById("reportDiv").style.display = "block";
				document.getElementById("hiddenReportFlag").value = '0';
			}
			else 
			{
				document.getElementById("reportDiv").style.display = "none";
			}
		}
		
		//锁屏
		function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
		    
		    //document.getElementById("hdnAction").value = condition;
		    //document.getElementById("btnAction").click();
        }

        function confirmMsg(code) {
            if (code == "F4200_002") {
                if (confirm('<%=GetGlobalMsgResource("F4200_002") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }
        
        //弹出箱托录入窗口
        function popInvPallet()
        {
            var receiptID = document.getElementById("txtReceiptID").value;
            var OwnerID= document.getElementById("txtOwnerID").value;
            var palletAudit = document.getElementById("chkboxPalletAudit").checked;
            var lang = self.parent.document.getElementById("hdnPerfLanguage").value;
            var style = self.parent.document.getElementById("henPerfStyle").value;
            
            //setTab('one',3,4);
//            var rtnValue = window.showModalDialog('ReceiptInvPallet.aspx?DOC_ID=' + escape(receiptID)+'&OwnerID='+escape(OwnerID),lang+','+style,'dialogWidth=810px;dialogHeight=500px;center=yes;resizable=yes;status=no;')
//            if(rtnValue != null && rtnValue.toString() != "")
//            {
//                var temp = rtnValue.split(',');
//                if(temp.length > 1)
//                {
//                    rtnValue = temp[0];
//                }
//                else 
//                {
//                    document.getElementById("lblMsg").innerText = '<%=GetGlobalMsgResource("F4200_001") %>';
//                }
//                document.getElementById("hdnRtnValue").value = rtnValue;
//                document.getElementById("btnRefresh").click();
//            }
            window.open ('ReceiptInvPallet.aspx?DOC_ID=' + escape(receiptID)+'&OwnerID='+escape(OwnerID)+'&PA='+escape(palletAudit)+'&lang='+escape(lang)+'&style='+escape(style), 'InboundPallet', 'height=500, width=810, top=50, left=100, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no')
            //window.showModalDialog('ReceiptInvPallet.aspx?DOC_ID=' + escape(receiptID)+'&OwnerID='+escape(OwnerID),lang+','+style,'dialogWidth=810px;dialogHeight=500px;center=yes;resizable=yes;status=no;')
        }
    </script>

</head>
<body>
    <form id="F4021" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblASN" runat="server" CssClass="label_header" Text="入库单" meta:resourcekey="lblASN"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            OnClick="btnGoBack_Click" AccessKey="b" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnSave%>"
                            AccessKey="s" />
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnRefresh%>"
                            AccessKey="e" OnClick="btnRefresh_Click" />
                    </td>
                    <td>
                        <input id="htmlbtnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>"
                            class="button" onclick="showAction();" />
                    </td>
                    <td>
                        <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>"
                            class="button" onclick="showReport();" />
                    </td>
                </tr>
            </table>
        </div>
        <%--<asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>--%>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,4)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">入库通知</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,4)"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">入库通知明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,4)"
                id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" meta:resourcekey="one3">收货明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL4">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,4)"
                id="divM4">
                <asp:Label ID="one4" CssClass="navigationlabel" runat="server" meta:resourcekey="one4">上架明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR4">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblReceiptID" runat="server" CssClass="label" Text="入库通知单号" meta:resourcekey="lblReceiptID"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblPOID" runat="server" CssClass="label" Text="采购订单号" meta:resourcekey="lblPOID"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblReceiptDate" runat="server" CssClass="label" Text="收货日期" meta:resourcekey="lblReceiptDate"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtReceiptID" runat="server" CssClass="textbox" MaxLength="30" Enabled="False"
                                meta:resourcekey="txtReceiptID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="False"
                                meta:resourcekey="ddlStatus">
                            </asp:DropDownList>
                            <td>
                                <asp:TextBox ID="txtPoID" runat="server" CssClass="textbox" MaxLength="30" meta:resourcekey="txtPoID"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox" MaxLength="30"
                                    meta:resourcekey="txtReceiptDate"></asp:TextBox><img src="../Images/calendar.gif"
                                        class="img" alt="请选择日期" onclick="setday(this,txtReceiptDate)" />
                            </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" meta:resourcekey="lblOwnerID"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblReceiptType" runat="server" CssClass="label" Text="订单类型" meta:resourcekey="lblReceiptType"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblExternalReceiptID" runat="server" CssClass="label" Text="外部订单号"
                                meta:resourcekey="lblExternalReceiptID"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblExceptReceiptDate" runat="server" CssClass="label" Text="预期到货日期"
                                meta:resourcekey="lblExceptReceiptDate"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" meta:resourcekey="txtOwnerID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlReceiptType" runat="server" CssClass="mediumselectbox" Enabled="False"
                                meta:resourcekey="ddlReceiptType">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:TextBox ID="txtExternalReceiptID" runat="server" CssClass="textbox" meta:resourcekey="txtExternalReceiptID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtExceptReceiptDate" runat="server" CssClass="textbox" meta:resourcekey="txtExceptReceiptDate"></asp:TextBox><img
                                src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtExceptReceiptDate)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblTotalExceptQty" runat="server" CssClass="label" Text="总预期量" meta:resourcekey="lblTotalExceptQty"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblTotalReceiptQty" runat="server" CssClass="label" Text="总接收量" meta:resourcekey="lblTotalReceiptQty"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblPackingSlipNum" runat="server" CssClass="label" Text="装箱单号" meta:resourcekey="lblPackingSlipNum"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblVendorID" runat="server" CssClass="label" Text="供应商代码" meta:resourcekey="lblVendorID"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtTotalExceptQty" runat="server" CssClass="textbox" meta:resourcekey="txtTotalExceptQty"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtTotalReceiptQty" runat="server" CssClass="textbox" meta:resourcekey="txtTotalReceiptQty"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPackingSlipNum" runat="server" CssClass="textbox" meta:resourcekey="txtPackingSlipNum"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" meta:resourcekey="txtVendorID"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblTotalGrossWeight" runat="server" CssClass="label" Text="总毛重" meta:resourcekey="lblTotalGrossWeight"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblTotalCube" runat="server" CssClass="label" Text="总体积" meta:resourcekey="lblTotalCube"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblRMA" runat="server" CssClass="label" Text="RMA号" meta:resourcekey="lblRMA"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblVendorRef" runat="server" CssClass="label" Text="供应商参考信息" meta:resourcekey="lblVendorRef"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtTotalGrossWeight" runat="server" CssClass="textbox" meta:resourcekey="txtTotalGrossWeight"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtTotalCube" runat="server" CssClass="textbox" meta:resourcekey="txtTotalCube"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtRMA" runat="server" CssClass="textbox" meta:resourcekey="txtRMA"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtVendorRef" runat="server" CssClass="textbox" meta:resourcekey="txtVendorRef"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                            <asp:Label ID="lblWaraHouseRef" runat="server" CssClass="label" Text="仓库参考信息" meta:resourcekey="lblWaraHouseRef"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox ID="chbSAPAuthentication" runat="server" CssClass="checkbox" Text="SAP验证"
                                Enabled="false" meta:resourcekey="chbSAPAuthentication" />
                        </td>
                        <td>
                            <asp:CheckBox ID="chkboxPalletAudit" runat="server" CssClass="checkbox" Text="箱托审核"
                                Enabled="false" meta:resourcekey="chkboxPalletAudit" />
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:TextBox ID="txtWaraHouseRef" runat="server" CssClass="textbox" meta:resourcekey="txtWaraHouseRef"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2" style="display: none; overflow-x: auto; overflow-y: hidden;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnBatchReceive" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnBatchReceive%>"
                                            OnClientClick="blockScreen();" OnClick="btnBatchReceive_Click" meta:resourcekey="btnBatchReceive" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnAddDetail%>" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Enabled="False"
                                            Text="<%$Resources:ButtonResource,btnDeleteDetail%>" OnClientClick="javascript:if(confirmMsg('F4200_002'))return true;else return false;" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
                                <ContentTemplate>
                                    <div>
                                        <asp:GridView ID="gvReceiptDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                            CssClass="gridview" AllowPaging="True" OnPageIndexChanging="gvReceiptDetail_PageIndexChanging"
                                            DataKeyNames="RECEIPT_ID,RECEIPT_LINE_ID" OnInit="gvReceiptDetail_Init" OnRowDataBound="gvReceiptDetail_RowDataBound"
                                            Width="3150px" OnSorting="gvReceiptDetail_Sorting" meta:resourcekey="gvReceiptDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <%--<asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>--%>
                                                <asp:BoundField DataField="RECEIPT_LINE_ID" SortExpression="RD.RECEIPT_LINE_ID" HeaderText="行号"
                                                    FooterText="行号" meta:resourcekey="ReceiptLineID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('4021','gvReceiptDetail');"
                                                            onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvReceiptDetail');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvReceiptDetail');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="收货" FooterText="收货" meta:resourcekey="Receiving">
                                                    <ItemTemplate>
                                                        <a id="receiptA" runat="server" onserverclick="SavePageQuery_Click" title='<%# Eval("RECEIPT_LINE_ID").ToString() %>'
                                                            target="_self">
                                                            <img src="../Images/icon_detail_2.gif" class="img" style="border: none 0px blue;"
                                                                alt="receipt" /></a>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <%--<asp:BoundField DataField="OwnerID" HeaderText="货主" FooterText="货主" 
                                             SortExpression="OwnerID" meta:resourcekey="OwnerID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>--%>
                                                <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="RD.SKU_ID"
                                                    meta:resourcekey="SkuID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SKU.DESCR"
                                                    meta:resourcekey="SkuDescr">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SKU_DESCR").ToString() %>'
                                                            meta:resourcekey="lblSkuDescr"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="预期量" HeaderText="预期量" SortExpression="RD.EXPECTED_QTY"
                                                    meta:resourcekey="ExpectedQty">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblExpectedQty" runat="server" Text='<%# GetPreferenceDigit(Eval("EXPECTED_QTY").ToString()) %>'
                                                            meta:resourcekey="lblExpectedQty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="接收量" HeaderText="接收量" SortExpression="RD.RECEIVED_QTY"
                                                    meta:resourcekey="ReceivedQty">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblReceivedQty" runat="server" Text='<%# GetPreferenceDigit(Eval("RECEIVED_QTY").ToString()) %>'
                                                            meta:resourcekey="lblReceivedQty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="PACK_ID" HeaderText="包装" FooterText="包装" SortExpression="RD.PACK_ID"
                                                    meta:resourcekey="PackID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="UOM_ID" HeaderText="单位" FooterText="单位" SortExpression="RD.UOM_ID"
                                                    meta:resourcekey="UomID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="STATUS_D" HeaderText="状态" FooterText="状态" SortExpression="RD.STATUS"
                                                    meta:resourcekey="StatusD">
                                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TO_LOC" HeaderText="货位" FooterText="货位" SortExpression="RD.TO_LOC"
                                                    meta:resourcekey="ToLoc">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="VENDOR_ID" HeaderText="供应商代码" FooterText="供应商代码" SortExpression="RD.VENDOR_ID"
                                                    meta:resourcekey="VendorID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LPN_ID" HeaderText="LPN" FooterText="LPN" SortExpression="RD.LPN_ID"
                                                    meta:resourcekey="LpnID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" SortExpression="RD.RECEIVED_DATE"
                                                    meta:resourcekey="ReceiveDate">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblReceiveDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("RECEIVED_DATE").ToString()) %>'
                                                            meta:resourcekey="lblReceiveDate"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" SortExpression="RD.PRODUCE_DATE"
                                                    meta:resourcekey="PRODUCEDATE">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblProduceDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("PRODUCE_DATE").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" SortExpression="RD.EXPIRY_DATE"
                                                    meta:resourcekey="EXPIRYDATE">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblExpiryDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("EXPIRY_DATE").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="EXTERNAL_LOT" HeaderText="外部批次号" FooterText="外部批次号" SortExpression="RD.EXTERNAL_LOT"
                                                    meta:resourcekey="ExternalLot">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR01" HeaderText="批次属性01" FooterText="批次属性01" SortExpression="RD.LOT_ATTR01"
                                                    meta:resourcekey="LotAttr01">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR02" HeaderText="批次属性02" FooterText="批次属性02" SortExpression="RD.LOT_ATTR02"
                                                    meta:resourcekey="LotAttr02">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR03" HeaderText="批次属性03" FooterText="批次属性03" SortExpression="RD.LOT_ATTR03"
                                                    meta:resourcekey="LotAttr03">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR04" HeaderText="批次属性04" FooterText="批次属性04" SortExpression="RD.LOT_ATTR04"
                                                    meta:resourcekey="LotAttr04">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR05" HeaderText="批次属性05" FooterText="批次属性05" SortExpression="RD.LOT_ATTR05"
                                                    meta:resourcekey="LotAttr05">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR06" HeaderText="批次属性06" FooterText="批次属性06" SortExpression="RD.LOT_ATTR06"
                                                    meta:resourcekey="LotAttr06">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR07" HeaderText="批次属性07" FooterText="批次属性07" SortExpression="RD.LOT_ATTR07"
                                                    meta:resourcekey="LotAttr07">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR08" HeaderText="批次属性08" FooterText="批次属性08" SortExpression="RD.LOT_ATTR08"
                                                    meta:resourcekey="LotAttr08">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR09" HeaderText="批次属性09" FooterText="批次属性09" SortExpression="RD.LOT_ATTR09"
                                                    meta:resourcekey="LotAttr09">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR10" HeaderText="批次属性10" FooterText="批次属性10" SortExpression="RD.LOT_ATTR10"
                                                    meta:resourcekey="LotAttr10">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                    <div style="margin-top: 10px;">
                                        <uc1:Pager ID="ReceiptDetailPagerFooter" runat="server" OnFirst="ReceiptDetailbtnFirst_Click"
                                            OnPrevious="ReceiptDetailbtnPrevious_Click" OnNext="ReceiptDetailbtnNext_Click"
                                            OnLast="ReceiptDetailbtnLast_Click" OnGoTo="ReceiptDetailGoTo_Click" />
                                    </div>
                                    <div style="margin-top: 20px;">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td class="Result_01">
                                                    <asp:Label ID="lblTotal" runat="server" Text="总计：" meta:resourcekey="lblTotal"></asp:Label>
                                                </td>
                                                <td class="Result_02">
                                                    <table>
                                                        <tr>
                                                            <td style="margin-right: 20px;">
                                                                &nbsp; &nbsp;
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblTotalExpected" runat="server" Text="预期量:" class="label" meta:resourcekey="lblTotalExpected"></asp:Label><asp:Label
                                                                    ID="lblTotalExpectedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblTotalReceived" runat="server" Text="接收量:" class="label" meta:resourcekey="lblTotalReceived"></asp:Label><asp:Label
                                                                    ID="lblTotalReceivedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td class="Result_03">
                                                </td>
                                            </tr>
                                            <tr style="height: 20px">
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server">
                <ContentTemplate>
                    <div id="con_one_3" style="display: none; overflow-x: auto; overflow-y: hidden;">
                        <table width="3600px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvReceiptHistory" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                            CssClass="gridview" AllowPaging="True" OnPageIndexChanging="gvReceiptHistory_PageIndexChanging"
                                            DataKeyNames="TRANS_ID,RECEIPT_ID,RECEIPT_LINE_ID,OWNER_ID,SKU_ID,RECEIVED_QTY,COMPLETED_QTY,REMAIN_QTY,UOM_ID,TO_LOC,HOLD_CODE,TO_LPN_ID,PACK_ID,LOT,STATUS"
                                            OnRowDataBound="gvReceiptHistory_RowDataBound" Width="3600px" OnSelectedIndexChanging="gvReceiptHistory_SelectedIndexChanging"
                                            OnInit="gvReceiptHistory_Init" OnSorting="gvReceiptHistory_Sorting" meta:resourcekey="gvReceiptHistory">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="No">
                                                    <HeaderTemplate>
                                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('4021','gvReceiptHistory');"
                                                            onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvReceiptHistory');"
                                                            meta:resourcekey="CheckBox1Resource2" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelectResource2" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvReceiptHistory');"
                                                            meta:resourcekey="CheckBox2Resource2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:TemplateField ShowHeader="False" HeaderText="上架" FooterText="上架" meta:resourcekey="Puraway">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkbtnPuraway" runat="server" CausesValidation="False" CommandName="Select"
                                                            Text="&lt;img 
                                                             src=&quot;../Images/putaway.gif&quot; class=&quot;img&quot; style=&quot;border:none 0px blue;&quot; 
                                                             alt=&quot;putaway&quot; __designer:mapid=&quot;e83&quot;/&gt;" meta:resourcekey="lnkbtnPuraway"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="RECEIPT_LINE_ID" SortExpression="IT.RECEIPT_LINE_ID" HeaderText="行号"
                                                    FooterText="行号" meta:resourcekey="ReceiptLineID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TRANS_ID" HeaderText="交易号" FooterText="交易号" SortExpression="IT.TRANS_ID"
                                                    meta:resourcekey="TransID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <%--<asp:BoundField DataField="OwnerID" HeaderText="货主" FooterText="货主" 
                                                     SortExpression="OwnerID" meta:resourcekey="OwnerID">
                                                     <ItemStyle CssClass="GridViewRowWidth_100" />
                                                 </asp:BoundField>--%>
                                                <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="IT.SKU_ID"
                                                    meta:resourcekey="SkuID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="S.DESCR" meta:resourcekey="SkuDescr">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("DESCR").ToString() %>'
                                                            meta:resourcekey="lblSkuDescr"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="VENDOR_ID" HeaderText="供应商代码" FooterText="供应商代码" SortExpression="VENDOR_ID"
                                                    meta:resourcekey="VendorID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TO_LPN_ID" HeaderText="LPN" FooterText="LPN" SortExpression="IT.TO_LPN_ID"
                                                    meta:resourcekey="LpnID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TO_LOC" HeaderText="收货货位" FooterText="收货货位" SortExpression="IT.TO_LOC"
                                                    meta:resourcekey="ReceiveToLoc">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="接收量" HeaderText="接收量" SortExpression="RECEIVED_QTY"
                                                    meta:resourcekey="ReceivedQty">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblReceivedQty" runat="server" Text='<%# GetPreferenceDigit(Eval("RECEIVED_QTY").ToString()) %>'
                                                            meta:resourcekey="lblReceivedQtyResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="PACK_ID" HeaderText="包装" FooterText="包装" SortExpression="PACK_ID"
                                                    meta:resourcekey="PackID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="UOM_ID" HeaderText="单位" FooterText="单位" SortExpression="UOM_ID"
                                                    meta:resourcekey="Uom">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="上架数量" HeaderText="上架数量" SortExpression="COMPLETED_QTY"
                                                    meta:resourcekey="CompletedQty">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCompletedQty" runat="server" Text='<%# GetPreferenceDigit(Eval("COMPLETED_QTY").ToString()) %>'
                                                            meta:resourcekey="lblCompletedQty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="分配数量" HeaderText="分配数量" SortExpression="ALLOCATED_QTY"
                                                    meta:resourcekey="AllocatedQty">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAllocatedQty" runat="server" Text='<%# GetPreferenceDigit(Eval("ALLOCATED_QTY").ToString()) %>'
                                                            meta:resourcekey="lblAllocatedQty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="HOLD_CODE" HeaderText="货品属性" FooterText="货品属性" SortExpression="HOLD_CODE"
                                                    meta:resourcekey="CondititonCode">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT" HeaderText="批次号" FooterText="批次号" SortExpression="IT.LOT"
                                                    meta:resourcekey="LotID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <%--                                         <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态" 
                                                     SortExpression="Status" meta:resourcekey="Status">
                                                     <ItemStyle CssClass="GridViewRowWidth_100" />
                                                 </asp:BoundField>--%>
                                                <asp:TemplateField HeaderText="状态" FooterText="状态" SortExpression="Status" meta:resourcekey="Status">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStatus" runat="server" CssClass="label" Text='<%# Eval("STATUS") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="IS_PUT_AWAYED" HeaderText="已上架" FooterText="已上架" SortExpression="IS_PUT_AWAYED"
                                                    meta:resourcekey="IsPutAwayed">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="IS_GEN_PUTAWAY" HeaderText="预上架" FooterText="预上架" SortExpression="IS_GEN_PUTAWAY"
                                                    meta:resourcekey="IsGenPutAway">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR01" HeaderText="批次属性01" FooterText="批次属性01" SortExpression="LA.LOT_ATTR01"
                                                    meta:resourcekey="LotAttr01">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR02" HeaderText="批次属性02" FooterText="批次属性02" SortExpression="LA.LOT_ATTR02"
                                                    meta:resourcekey="LotAttr02">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR03" HeaderText="批次属性03" FooterText="批次属性03" SortExpression="LA.LOT_ATTR03"
                                                    meta:resourcekey="LotAttr03">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR04" HeaderText="批次属性04" FooterText="批次属性04" SortExpression="LA.LOT_ATTR04"
                                                    meta:resourcekey="LotAttr04">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR05" HeaderText="批次属性05" FooterText="批次属性05" SortExpression="LA.LOT_ATTR05"
                                                    meta:resourcekey="LotAttr05">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR06" HeaderText="批次属性06" FooterText="批次属性06" SortExpression="LA.LOT_ATTR06"
                                                    meta:resourcekey="LotAttr06">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR07" HeaderText="批次属性07" FooterText="批次属性07" SortExpression="LA.LOT_ATTR07"
                                                    meta:resourcekey="LotAttr07">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR08" HeaderText="批次属性08" FooterText="批次属性08" SortExpression="LA.LOT_ATTR08"
                                                    meta:resourcekey="LotAttr08">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR09" HeaderText="批次属性09" FooterText="批次属性09" SortExpression="LA.LOT_ATTR09"
                                                    meta:resourcekey="LotAttr09">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LOT_ATTR10" HeaderText="批次属性10" FooterText="批次属性10" SortExpression="LA.LOT_ATTR10"
                                                    meta:resourcekey="LotAttr10">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" SortExpression="LA.RECEIPT_DATE"
                                                    meta:resourcekey="ReceiveDate">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblReceiveDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("RECEIPT_DATE").ToString()) %>'
                                                            meta:resourcekey="lblReceiveDate"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" SortExpression="LA.PRODUCE_DATE"
                                                    meta:resourcekey="PRODUCEDATE">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblProduceDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("PRODUCE_DATE").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" SortExpression="LA.EXPIRY_DATE"
                                                    meta:resourcekey="EXPIRYDATE">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblExpiryDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("EXPIRY_DATE").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="EXTERNAL_LOT" HeaderText="外部批号" FooterText="外部批号" SortExpression="LA.EXTERNAL_LOT"
                                                    meta:resourcekey="ExternalLot">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                    <div>
                                        <uc1:Pager ID="ReceiptHistoryPagerFooter" runat="server" OnFirst="ReceiptHistorybtnFirst_Click"
                                            OnPrevious="ReceiptHistorybtnPrevious_Click" OnNext="ReceiptHistorybtnNext_Click"
                                            OnLast="ReceiptHistorybtnLast_Click" OnGoTo="ReceiptHistoryGoTo_Click" />
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                        <div style="margin-left: 10px">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td class="Result_01">
                                        <asp:Label ID="lblRHTotal" runat="server" Text="总计：" meta:resourcekey="lblTotal"></asp:Label>
                                    </td>
                                    <td class="Result_02">
                                        <table>
                                            <tr>
                                                <td style="margin-right: 20px;">
                                                    &nbsp; &nbsp;
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblRHTotalReceived" runat="server" Text="接受数量:" class="label" meta:resourcekey="lblRHTotalReceived"></asp:Label><asp:Label
                                                        ID="lblRHTotalReceivedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblTotalCompleted" runat="server" Text="上架数量:" class="label" meta:resourcekey="lblTotalCompleted"></asp:Label>
                                                    <asp:Label ID="lblTotalCompletedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblTotalAllocated" runat="server" Text="分配数量:" class="label" meta:resourcekey="lblTotalAllocated"></asp:Label><asp:Label
                                                        ID="lblTotalAllocatedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td class="Result_03">
                                    </td>
                                </tr>
                                <tr style="height: 20px">
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
            <div id="con_one_4" style="display: none; overflow-x: auto; overflow-y: hidden;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnConfirmPA" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnConfirmPA%>"
                                            OnClientClick="blockScreen();" OnClick="btnConfirmPA_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnDeletePA" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnDeletePA%>"
                                            OnClientClick="blockScreen();" OnClick="btnDeletePA_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnReleasePrintPutaway" runat="server" CssClass="button" Enabled="False"
                                            Text="<%$Resources:ButtonResource,btnReleasePrintPutaway%>" OnClientClick="blockScreen();"
                                            OnClick="btnReleasePrintPutaway_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel3" UpdateMode="Conditional" runat="server">
                                <ContentTemplate>
                                    <div style="width: 1200px; height: auto;">
                                        <asp:GridView ID="gvPutawayDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                            CssClass="gridview" AllowPaging="True" OnPageIndexChanging="gvPutawayDetail_PageIndexChanging"
                                            DataKeyNames="TASK_DETAIL_ID,RECEIPT_ID,RECEIPT_LINE_ID,STATUS,FROM_LOC,LOT,FROM_LPN_ID,TO_LPN_ID,QTY,SKU_ID,TO_LOC,UOM_ID,OWNER_ID,PACK_ID,IS_PRINTED"
                                            OnRowDataBound="gvPutawayDetail_RowDataBound" Width="1350px" OnInit="gvPutawayDetail_Init"
                                            OnSorting="gvPutawayDetail_Sorting" meta:resourcekey="gvPutawayDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="TemplateField1">
                                                    <HeaderTemplate>
                                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('4021','gvPutawayDetail');"
                                                            onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvPutawayDetail');"
                                                            meta:resourcekey="CheckBox1Resource3" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelectResource3" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvPutawayDetail');"
                                                            meta:resourcekey="CheckBox2Resource3" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="TASK_DETAIL_ID" HeaderText="任务号" FooterText="任务号" SortExpression="TD.TASK_DETAIL_ID"
                                                    meta:resourcekey="TaskDetailID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="STATUS_D" HeaderText="状态" FooterText="状态" SortExpression="STATUS_D"
                                                    meta:resourcekey="StatusD">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="IS_PRINTED" HeaderText="打印" FooterText="打印" SortExpression="IS_PRINTED"
                                                    meta:resourcekey="IS_PRINTED">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="TD.SKU_ID"
                                                    meta:resourcekey="SkuID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="S.DESCR" meta:resourcekey="SkuDescr">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("DESCR").ToString() %>'
                                                            meta:resourcekey="lblSkuDescrResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="LOT" HeaderText="批次号" FooterText="批次号" SortExpression="LOT"
                                                    meta:resourcekey="LotID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TO_LPN_ID" HeaderText="LPN" FooterText="LPN" SortExpression="TD.TO_LPN_ID"
                                                    meta:resourcekey="LpnID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="上架数量" HeaderText="上架数量" SortExpression="QTY" meta:resourcekey="Qty">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQty" runat="server" Text='<%# GetPreferenceDigit(Eval("QTY").ToString()) %>'
                                                            meta:resourcekey="lblQty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="UOM_ID" HeaderText="单位" FooterText="单位" SortExpression="TD.UOM_ID"
                                                    meta:resourcekey="UomID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="FROM_LOC" HeaderText="自货位" FooterText="自货位" SortExpression="TD.FROM_LOC"
                                                    meta:resourcekey="FromLoc">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TO_LOC" HeaderText="建议货位" FooterText="建议货位" SortExpression="TD.TO_LOC"
                                                    meta:resourcekey="SuggestLoc">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="确认货位" FooterText="确认货位" meta:resourcekey="FinalLoc">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtFinalLoc" CssClass="textbox" Width="120px" runat="server" Text='<%# Eval("FINAL_TO_LOC").ToString() %>'
                                                            meta:resourcekey="txtFinalLoc"></asp:TextBox>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_150" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_150" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                    <div style="margin-top: 10px;">
                                        <uc1:Pager ID="PutawayDetailPagerFooter" runat="server" OnFirst="PutawayDetailbtnFirst_Click"
                                            OnPrevious="PutawayDetailbtnPrevious_Click" OnNext="PutawayDetailbtnNext_Click"
                                            OnLast="PutawayDetailbtnLast_Click" OnGoTo="PutawayDetailGoTo_Click" />
                                    </div>
                                    <div style="margin-left: 10px; margin-top: 30px;">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td class="Result_01">
                                                    <asp:Label ID="Label1" runat="server" Text="总计：" meta:resourcekey="lblTotal"></asp:Label>
                                                </td>
                                                <td class="Result_02">
                                                    <table>
                                                        <tr>
                                                            <td style="margin-right: 20px;">
                                                                &nbsp; &nbsp;
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblPDTotal" runat="server" Text="上架数量:" class="label" meta:resourcekey="lblTotalCompleted"></asp:Label><asp:Label
                                                                    ID="lblPDTotalQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td class="Result_03">
                                                </td>
                                            </tr>
                                            <tr style="height: 20px">
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <%--</ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
        </Triggers>
        </asp:UpdatePanel>--%>
    </div>
    <input type="hidden" id="hdnReceiptID" runat="server" />
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnRtnValue" runat="server" />
    <input type="hidden" id="hdnAction" runat="server" />
    <input type="hidden" id="hiddenFlag" />
    <input type="hidden" id="hiddenReportFlag" />
    <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
        <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnReceiveall" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnReceiveall" runat="server" Text="<%$Resources:ButtonResource,lnkbtnReceiveall%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnReceiveall_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnAutoputaway" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnAutoputaway" runat="server" Text="<%$Resources:ButtonResource,lnkbtnAutoputaway%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnAutoputaway_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnClose" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnClose" runat="server" Text="<%$Resources:ButtonResource,lnkbtnClose%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnClose_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnInvPalletInput" runat="server" visible="False">
                    <asp:LinkButton ID="lnkbtnInvPalletInput" runat="server" Text="箱托录入" meta:resourcekey="lnkbtnInvPalletInput"
                        OnClientClick="popInvPallet();"></asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    <div id="reportDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
        <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintReceipt" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnPrintReceipt" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintReceipt%>"
                        OnClientClick="popPrintReceipt();"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintPutAway" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnPrintPutAway" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintPutAway%>"
                        OnClick="lnkbtnPrintPutAway_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintReceiptList" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnPrintReceiptList" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintReceiptList%>"
                        OnClientClick="popPrintReceiptList();"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintQCReport" runat="server" visible="true">
                    <asp:LinkButton ID="lnkbtnPrintQCReport" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintQCReport%>"
                        OnClientClick="popPrintQCReport();"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintReceivableBill" runat="server" visible="true">
                    <asp:LinkButton ID="lnkbtnPrintReceivableBill" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintReceivableBill%>"
                        OnClientClick="popPrintReceivableBillByReceiptID();"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintPaymentBill" runat="server" visible="true">
                    <asp:LinkButton ID="lnkbtnPrintPaymentBill" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintPaymentBill%>"
                        OnClientClick="popPrintPaymentBillByReceiptID();"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintImportReceipt" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnPrintImportReceipt" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintImportReceipt%>"
                        OnClientClick="popPrintImportReceipt();"></asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    <input type="hidden" id="hdnCreatedBy" runat="server" />
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
	<!--
		hiddenDiv();
		hiddenReportDiv();
		hiddenCalendarDiv();
	//-->
</script>

